package cn.com.ejiakanghu.form;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @author wj
 * @date 2021/11/8 15:01
 */
public class StoreGoodsListForm {

    private String keywords;

    @NotNull(message = "当前页码不能为空")
    @Min(value = 1,message = "当前页码不能小于1")
    private Integer page;

    @NotNull(message = "每页条数不能为空")
    @Min(value = 0,message = "每页条数不能小于0")
    private Integer limit;

    private String deviceId;

    public String getDeviceId() {
        return deviceId;
    }

    public void setDeviceId(String deviceId) {
        this.deviceId = deviceId;
    }

    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }

    public Integer getPage() {
        return page;
    }

    public void setPage(Integer page) {
        this.page = page;
    }

    public Integer getLimit() {
        return limit;
    }

    public void setLimit(Integer limit) {
        this.limit = limit;
    }
}
